home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Internet Info 1994 March
/
Internet Info CD-ROM (Walnut Creek) (March 1994).iso
/
networking
/
ip
/
ka9q
/
alpha.arc
/
SESSION.H
< prev
next >
Wrap
C/C++ Source or Header
|
1987-12-23
|
812b
|
31 lines
extern int mode;
#define CMD_MODE 1 /* Command mode */
#define CONV_MODE 2 /* Converse mode */
/* Session control structure; only one entry is used at a time */
struct session {
int type;
#define FREE 0
#define TELNET 1
#define FTP 2
#define AX25TNC 3
char *name; /* Name of remote host */
union {
struct ftp *ftp;
struct telnet *telnet;
struct ax25_cb *ax25_cb;
} cb;
int (*parse)(); /* Where to hand typed input when conversing */
FILE *record; /* Receive record file */
char *rfile; /* Record file name */
FILE *upload; /* Send file */
char *ufile; /* Upload file name */
};
#define NULLSESSION (struct session *)0
extern unsigned nsessions;
extern struct session *sessions;
extern struct session *current;
struct session *newsession();
extern int16 lport;